class LoginAPI():

    def __init__(self):
        self.url_verify = "http://localhost/index.php?m=Home&c=User&a=verify"
        self.url_login = "http://localhost/index.php?m=Home&c=User&a=do_login"

    def do_verify_code(self, session):
        return session.get(self.url_verify)

    def do_login(self, session, data):
        return session.post(self.url_login, data=data)
